import { useState } from 'react'
import { MessageProps, Position } from '.'

type MessageList = {
  top: MessageProps[]
  bottom: MessageProps[]
}
const initialState = {
  top: [],
  bottom: []
}
const useStore = (defaultPosition: Position) => {
  const [messageList, setMessageList] = useState<MessageList>({
    ...initialState
  })
  return {
    messageList,
    add: (message: MessageProps) => {},
    update: (id: number, message: MessageProps) => {},
    remove: (id: number) => {},
    clearAll: () => {}
  }
}
export default useStore
